package cn.wolfcode.domain;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Description: 生产者商品实体类
 * @Author: 伍家钰
 * @Date: 2020/8/28 13:02
 * @Version: 1.0
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class Product implements Serializable {
    //商品id
    private Long id;
    //商品名称
    private String name;
    //商品价格
    private BigDecimal price;
    //商品库存
    private int stock;
}